package cn.iocoder.yudao.module.wms.controller.admin.commodity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 商品新增/修改 Request VO")
@Data
public class CommoditySaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "6903")
    private String id;

    @Schema(description = "库存数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "8183")
    @NotNull(message = "库存数量不能为空")
    private Integer count;

    @Schema(description = "描述信息", example = "随便")
    private String description;

    @Schema(description = "商品名称", example = "王五")
    @NotBlank(message = "商品名称不能为空")
    private String name;

    @Schema(description = "商品单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "29294")
    @NotNull(message = "商品单价不能为空")
    private Double price;
}